#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
int main()
{
	float a, b, s;
	scanf("%f %f", &a, &b);
	s = a / (b * b);
	printf("%.1f\n", s);
	if (s > 25)
		printf("PANG");
	else
		printf("Hai Xing");
	return 0;
}
